package com.enjia.shopping.adapter;

import android.content.Context;
import android.support.annotation.LayoutRes;
import android.view.View;
import android.view.ViewGroup;

import com.enjia.enjiashop.R;
import com.enjia.shopping.bean.OrderShopBean;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;

/**
 * 订单商品列表页面
 * Created by feifei on 2017/12/22.
 */

public class OrderShopAdapter extends RecyclerArrayAdapter<OrderShopBean> {

    public OrderShopAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new OrderBeanViewHolder(parent, R.layout.item_order_shop);
    }

    private class OrderBeanViewHolder extends BaseViewHolder<OrderShopBean>{


        public OrderBeanViewHolder(ViewGroup parent, @LayoutRes int res) {
            super(parent, res);
        }

        @Override
        public void setData(OrderShopBean data) {
            super.setData(data);
        }
    }
}
